package com.bbzn.device.client.dao.process;

import com.bbzn.device.client.dataobject.FlowNode;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface FlowNodeMapper {
    /**
     * delete by primary key
     *
     * @param flowNodeId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long flowNodeId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(FlowNode record);

    int insertOrUpdate(FlowNode record);

    int insertOrUpdateSelective(FlowNode record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(FlowNode record);

    /**
     * select by primary key
     *
     * @param flowNodeId primary key
     * @return object by primary key
     */
    FlowNode selectByPrimaryKey(Long flowNodeId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(FlowNode record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(FlowNode record);

    List<FlowNode> findByAll(FlowNode flowNode);

    int updateBatch(List<FlowNode> list);

    int updateBatchSelective(List<FlowNode> list);

    int batchInsert(@Param("list") List<FlowNode> list);

    int findCountByAll(FlowNode flowNode);

    /**
     * delete by primary key
     *
     * @param flowId primaryKey
     * @return deleteCount
     */
    int deleteByFlowId(Long flowId);
}